package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.BlastLGRecordEntity

@Dao
interface BlastLeiGuanDao {

    @Transaction
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertLeiGuan(vararg mLeiGuanEntity: BlastLGRecordEntity)

    @Transaction
    @Update
    fun updateLeiGuan(vararg mLeiGuanEntity: BlastLGRecordEntity)

    @Transaction
    @Delete
    fun deleteLeiGuan(vararg mLeiGuanEntity: BlastLGRecordEntity)

    @Transaction
    @Query("select * from blastLgRecord")
    fun queryLeiGuan():List<BlastLGRecordEntity>
}